package com.lpb.spring.lpbspring.getway.model;


public class Fail extends RestModel {

    public static final Fail BAD_REQUEST = new Fail();
    public static final Fail UNAUTHORIZED = new Fail();
    public static final Fail FORBIDDEN = new Fail();
    public static final Fail NOT_FOUND = new Fail();

    public Fail() {
    }

    public Fail(String describe) {
        this.setDescribe(describe);
    }

    public Fail(String code, String describe) {
        this.setCode(code);
        this.setDescribe(describe);
    }

    public Fail(Information code) {
        super(code);
        this.setSuccess(false);
    }
}
